import { dayjs } from 'element-plus'

export function timeFormate(
  time = new Date().getTime(),
  pattern = 'YYYY-MM-DD HH:mm:ss'
) {
  return dayjs(time).format(pattern)
}
